<template>
  <view>
    <web-view
      :fullscreen="true"
      :webview-styles="webviewStyles"
      :src="`https://uri.amap.com/navigation?type=car&policy=0&src=mywebpage&callnative=1&from=${from}&to=${position}`"
    />
  </view>
</template>

<script setup lang="ts">
import { computed } from 'vue';

const webviewStyles = {
  progress: {
    color: "#FF3333",
  },
  flex: 1,
};



const position = computed(() => uni.getStorageSync("locate_url"));

const from =  computed(() => uni.getStorageSync("location") || '120.208953,30.186600');


</script>

<style scoped></style>
